package cn.ren.hai.base.service.impl;

import cn.ren.hai.base.entity.RhViewTableField;
import cn.ren.hai.base.mapper.RhViewTableFieldMapper;
import cn.ren.hai.base.service.RhViewTableFieldService;
import cn.ren.hai.core.entity.PageInfo;
import cn.ren.hai.core.entity.QueryPage;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import org.springframework.stereotype.Service;

/**
 * 视图表格字段(RhViewTableField)表服务实现类
 *
 * @author makejava
 * @since 2022-01-24 22:32:43
 */
@Service("rhViewTableFieldService")
public class RhViewTableFieldServiceImpl extends ServiceImpl<RhViewTableFieldMapper, RhViewTableField>  implements RhViewTableFieldService {
    
    private final RhViewTableFieldMapper rhViewTableFieldMapper;
    
    public RhViewTableFieldServiceImpl(RhViewTableFieldMapper rhViewTableFieldMapper) {
        this.rhViewTableFieldMapper = rhViewTableFieldMapper;
    }    

    @Override
    public PageInfo<RhViewTableField> list(QueryPage<RhViewTableField> page) {
        QueryWrapper<RhViewTableField> queryWrapper = new QueryWrapper<>();
        PageHelper.startPage(page);
        return new PageInfo<>(rhViewTableFieldMapper.selectList(queryWrapper));
    }
   
}

